package com.qth.valet.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qth.valet.entity.po.Driver;

import java.util.List;
import java.util.Map;

public interface DriversService extends IService<Driver> {

    boolean updateSts(Integer driverId, Integer status);

    boolean checkVerifyCode(String phone, int verfiyCode);

    void setDriverAddr(Driver driver);

    void removeDriverAddr(Integer driverId);

    int createVerifyCode(String phone);

    boolean updateDriverBalancePlus(Integer driverId, Long amount);

    boolean updateDriverBalanceMinus(Integer driverId, Long amount);

    List<Map<Object, Object>> getAllDriverAddr();

    boolean sendMsm(String phoneNumber, int code);

    void updateNoticeReadStatus(Integer driverId, boolean status);
}
